package com.lzw.breezeNovel.model.entity.pojo.novel;

import com.lzw.breezeNovel.model.entity.pojo.BaseEntity;
import com.lzw.breezeNovel.model.entity.pojo.user.UserInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.entity
 * @date 2025/3/2
 * @description 小说实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Book extends BaseEntity {

    @Schema(description = "小说id")
    private Long bookId;

    @Schema(description = "小说名称")
    private String bookName;

    @Schema(description = "小说作者")
    private String author;

    @Schema(description = "小说描述")
    private String des;

    @Schema(description = "小说字数")
    private Long count;

    @Schema(description = "小说状态")
    private Integer status;

    @Schema(description = "小说封面")
    private String imgUrl;

    @Schema(description = "小说类型")
    private String type;

    @Schema(description = "是否推荐")
    private Integer recomend;

    @Schema(description = "总评分")
    private BigDecimal totalScore;

    @Schema(description = "阅读人数")
    private Long readBook;

    @Schema(description = "评分人数")
    private Long ratingCount;

    @Schema(description = "是否付费")
    private Integer isPay;

    @Schema(description = "章节列表")
    private List<Chapter> chapters;

    @Schema(description = "小说的作者")
    private UserInfo userInfo;

}
